package handle

import (
	"leaf/core/gate"
	"leaf/pb"
)

func Init() {
	gate.Processor.Register(&pb.C2S_ServerInfo{}, &pb.S2C_ServerInfo{}, ServerInfoHandler)
	gate.Processor.Register(&pb.C2S_GuestAuth{}, &pb.S2C_GuestAuth{}, GuestAuthHandler)

	gate.Processor.Register(&pb.C2S_Regs{}, &pb.S2C_Regs{}, RegisterHandler)
	gate.Processor.Register(&pb.C2S_Login{}, &pb.S2C_Login{}, LoginNewHandler)
	gate.Processor.Register(&pb.C2S_CreateUser{}, &pb.S2C_CreateUser{}, CreateUserNewHandler)
	gate.Processor.Register(&pb.C2S_LoginUseRole{}, &pb.S2C_LoginUseRole{}, LoginUseRoleHandler)
	//gate.Processor.Register(&pb.C2S_LoginUseRole{}, &pb.S2C_LoginUseRole{}, LoginUseRoleTestHandler)

}
